package cn.botter.subject.domain.convert;

import cn.botter.subject.domain.entity.SubjectAnswerBO;
import cn.botter.subject.domain.entity.SubjectLabelBO;
import cn.botter.subject.infra.basic.entity.SubjectLabel;
import cn.botter.subject.infra.basic.entity.SubjectRadio;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface RadioSubjectConverter {

    RadioSubjectConverter INSTANCE = Mappers.getMapper(RadioSubjectConverter.class);

    /**
     *
     * @param answerListBO
     * @return
     */
    SubjectRadio convertBoToRadio(SubjectAnswerBO answerListBO);

    List<SubjectAnswerBO> convertRadioToAnswerBO(List<SubjectRadio> result);
}
